<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑员工</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.0.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <h1>编辑员工</h1>
    <form method="post" th:action="@{/employee/edit/{empId}(empId=${employee.empId})}">
        <div class="form-group">
            <label for="empId">员工ID</label>
            <input type="text" class="form-control" id="empId" name="empId" th:value="${employee.empId}" readonly>
        </div>
        <div class="form-group">
            <label for="empName">员工姓名</label>
            <input type="text" class="form-control" id="empName" name="empName" th:value="${employee.empName}" required>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
    </form>
</div>
</body>
</html>